@extends('layouts.header')
@section('title','智慧实验室')
@section('style')
    body{
        height:100%;
        overflow:hidden;
        background-color:rgb(1, 75, 132);
        background: url('/admin/static/myfolder/img/zks/back2.png') no-repeat;
        background-size:100% 100%;
        font-size:100%;
        line-height:2;
    }
@endsection
@section('content')
    <article class="page-container">
        <form class="form form-horizontal pd-30" id="form" autocomplete="off">
            <div class="row cl">
                <label class="form-label col-sm-2">登录名：</label>
                <div class="formControls col-sm-4">
                    <input type="text" class="input-text" value="{{ $data->username }}" placeholder="" id="username" disabled>
                </div>
                <label class="form-label col-sm-2">真实姓名：</label>
                <div class="formControls col-sm-4">
                    <input type="text" class="input-text" value="{{ $data->realname }}" placeholder="" id="realname" disabled>
                </div>
            </div>
            <div class="row cl">
                <label class="form-label col-sm-2">工号：</label>
                <div class="formControls col-sm-4">
                    <input type="text" class="input-text" value="{{ $data->num }}" placeholder="" id="num" disabled>
                </div>
                <label class="form-label col-sm-2">电话：</label>
                <div class="formControls col-sm-4">
                    <input type="text" class="input-text" value="{{ $data->telephone }}" placeholder="" id="telephone" disabled>
                </div>
            </div>
            <div class="row cl">
                <label class="form-label col-sm-2">所在部门：</label>
                <div class="formControls col-sm-4">
                    <input type="text" class="input-text" value="{{ $data->depa }}" placeholder="" id="depa" disabled>
                </div>
                <label class="form-label col-sm-2">职务：</label>
                <div class="formControls col-sm-4">
                    <input type="text" class="input-text" value="{{ $data->position }}" placeholder="" id="position" disabled>
                </div>
            </div>
            <div class="row cl">
                <label class="form-label col-sm-2">性别：</label>
                <div class="formControls col-sm-4">
                    <input type="text" class="input-text" value="{{ $data->gender == 1 ? '男':'女' }}" placeholder="" id="gender" disabled>
                </div>
                <label class="form-label col-sm-2">邮箱：</label>
                <div class="formControls col-sm-4">
                    <input type="text" class="input-text" value="{{ $data->email }}" placeholder="" id="email" disabled>
                </div>
            </div>
            <div class="row cl">
                <label class="form-label col-sm-2">账号注册日期：</label>
                <div class="formControls col-sm-4">
                    <input type="text" class="input-text" value="{{ $data->created_at }}" placeholder="" id="created_at" disabled>
                </div>
                <label class="form-label col-sm-2">入职日期：</label>
                <div class="formControls col-sm-4">
                    <input type="text" class="input-text" value="{{ $data->work_date }}" placeholder="" id="work_date" disabled>
                </div>
            </div>
            <div class="row cl">
                <label class="form-label col-sm-2">学历：</label>
                <div class="formControls col-sm-4">
                    <input type="text" class="input-text" value="{{ $data->edu }}" placeholder="" id="edu" disabled>
                </div>
                <label class="form-label col-sm-2">毕业院校：</label>
                <div class="formControls col-sm-4">
                    <input type="text" class="input-text" value="{{ $data->school }}" placeholder="" id="school" disabled>
                </div>
            </div>
            <div class="row cl">
                <label class="form-label col-sm-2">出生日期：</label>
                <div class="formControls col-sm-4">
                    <input type="text" class="input-text" value="{{ $data->birth }}" placeholder="" id="birth" disabled>
                </div>
                <label class="form-label col-sm-2">职称：</label>
                <div class="formControls col-sm-4">
                    <input type="text" class="input-text" value="{{ $data->zhicheng }}" placeholder="" id="zhicheng" disabled>
                </div>
            </div>
            <div class="row cl">
                <label class="form-label col-sm-2">持证情况：</label>
                <div class="formControls col-sm-10">
                    <input type="text" class="input-text" value="{{ $data->chizheng }}" placeholder="" id="chizheng" disabled>
                </div>
            </div>
            <div class="row cl">
                <label class="form-label col-sm-2">角色：</label>
                <div class="formControls col-sm-4">
                    <span class="select-box"> {{ $data->role_names }} </span>
                </div>
                <label class="form-label col-sm-2">是否为主检人：</label>
                <div class="formControls col-sm-4">
                    <span class="select-box">
                        @if ($data->istester == '0') 否 @else 是 @endif
                    </span>
                </div>
            </div>
        </form>
    </article>
    <script>
        $(function () {
            $('label , input , .select-box').css('color', '#fff');
            $('.input-text , .select-box').css('background-color','#144971').css('box-shadow','0 1px 0 0 #00dbfd').css('border-radius','20px').css('padding-left','20px');
        })
    </script>
@endsection